package com.telit.firecommand.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommMsgPushReceiver implements Serializable {

    @ApiModelProperty(value="主键id")
    @TableId(type= IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "接收人姓名")
    @NotBlank(message = "接收人姓名不能为空")
    private String receiverName;

    @ApiModelProperty(value = "接收人手机号")
    @NotBlank(message = "接收人手机号不能为空")
    private String receiverMobile;

    @ApiModelProperty(value="是否删除,0否，1是")
    @TableLogic(value = "0", delval = "1")
    private String deleted;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("创建人")
    private String createUser;

    @ApiModelProperty("更新人")
    private String updateUser;

    @ApiModelProperty("是否禁止，0否，1是，默认是0")
    private String disabled;

    @ApiModelProperty("消息类型数值全字段显示")
    @TableField(exist = false)
    private String msgPushTypeValue;

    @ApiModelProperty("消息类型中文全字段显示")
    @TableField(exist = false)
    private String msgPushTypeLabel;

    private static final long serialVersionUID = 1L;
}
